home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _105C9846906D4CD69FE14418910F9255 < prev    next >
Encoding:
Text File  |  2004-01-06  |  3.4 KB  |  107 lines

  1. -- Forrest Behaviour SCRIPT
  2. --------------------------
  3.  
  4. AIBehaviour.SnipeDummy = {
  5.     Name = "SnipeDummy",
  6.     pathname = "",
  7.  
  8.     -- SYSTEM EVENTS            -----
  9.     ---------------------------------------------
  10.     OnSelected = function(self,entity )
  11.     end,
  12.     ---------------------------------------------
  13.     OnSpawn = function(self,entity )
  14.     end,
  15.     ---------------------------------------------
  16.     OnActivate = function(self,entity )
  17.         local pos = Game:GetTagPoint(entity.Behaviour.pathname);
  18.         if (pos) then
  19.             entity:SetPos(pos);
  20.         end
  21.         entity:SelectPipe(0,"stand_with_idle_break");
  22.     end,
  23.     ---------------------------------------------
  24.     OnNoTarget = function( self,entity )
  25.         entity:SelectPipe(0,"relax_from_sound");
  26.     end,
  27.     ---------------------------------------------
  28.     OnPlayerSeen = function( self,entity )
  29.     end,
  30.     ---------------------------------------------
  31.     OnPlayerMemory = function(self, entity )
  32.     end,
  33.     ---------------------------------------------
  34.     OnEnemySeen = function(self,entity )
  35.     end,
  36.     ---------------------------------------------
  37.     OnEnemyMemory = function(self,entity )
  38.     end,
  39.     ---------------------------------------------
  40.     OnDeadFriendSeen = function(self,entity )
  41.     end,
  42.     ---------------------------------------------
  43.     OnDeadEnemySeen = function(self,entity )
  44.     end,
  45.     ---------------------------------------------
  46.     OnInterestingSoundHeard = function(self,entity )
  47.     end,
  48.     ---------------------------------------------
  49.     OnThreateningSoundHeard = function(self, entity )
  50.         entity:SelectPipe(0,"scared_of_sound");
  51.     end,
  52.     ---------------------------------------------
  53.     OnGunfireHeard = function(self,entity )
  54.     end,
  55.     ---------------------------------------------
  56.     OnFootstepsHeard = function( self,entity )
  57.     end,
  58.     ---------------------------------------------
  59.     OnGranateSeen = function( self,entity )
  60.     end,
  61.     ---------------------------------------------
  62.     OnLongTimeNoTarget = function(self, entity )
  63.     end,
  64.     ---------------------------------------------
  65.     OnGroupMemberDied = function(self, entity )
  66.         entity:SelectPipe(0,"scared_of_sound");
  67.     end,
  68.     ---------------------------------------------
  69.     OnNoNearerHidingPlace = function(self, entity , sender)
  70.     end,    
  71.     ---------------------------------------------
  72.     OnNoHidingPlace = function( self,entity, sender )
  73.     end,    
  74.     ---------------------------------------------
  75.     OnReceivingDamage = function (self,entity, sender)
  76.     end,
  77.     ---------------------------------------------
  78.  
  79.  
  80.     PlayRandomIdleAnimation = function (self,entity, sender)
  81.         local rnd = random(1,10);
  82.         if (rnd > 8) then
  83.             entity:StartAnimation(0,"sidlebreak1",0,0.5);
  84.         elseif (rnd > 7) then
  85.             entity:StartAnimation(0,"skickground1",0,0.5);
  86.         elseif (rnd > 6) then
  87.             entity:StartAnimation(0,"skickground1",0,0.5);
  88.         end
  89.     end,
  90.     ---------------------------------------------
  91.     PlayGetDownAnimation = function(self,entity,sender)
  92.         entity:StartAnimation(0,"salertgetdown",0,0.5);
  93.     end,
  94.     ---------------------------------------------
  95.     GoIntoLoop = function(self,entity,sender)
  96.         entity:StartAnimation(0,"salertgetloop",0,0.5);
  97.         entity:SelectPipe(0,"crouchingthere");
  98.     end,
  99.     ---------------------------------------------
  100.     PlayGetUpAnimation = function(self,entity,sender)
  101.         entity:StartAnimation(0,"salertgetup",0,0.5);
  102.     end,
  103.     ---------------------------------------------
  104.     GoIntoIdleLoop = function(self,entity,sender)
  105.         entity:SelectPipe(0,"stand_with_idle_break");
  106.     end,
  107. }